package com.ym.pms.dao;

import com.ym.pms.model.Contract;
import com.ym.pms.model.Listoffees;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author ming
 * @since 2020-12-23
 */
@Repository
public interface ListoffeesMapper extends BaseMapper<Listoffees> {

    @Select("select * from contract where co_CStatus=1")
    List<Contract> findContracts();

    @Select("select * from contract where co_id=#{id}")
    Contract findByContractId(Integer id);

}
